import request from "@/utils/request";
//资金账户流水列表
export function getCapitalFlowList(params) {
  return request({
    url: "/capitalFlow/account",
    method: "get",
    params,
  });
}
//资金流水明细列表
export function getCapitalFlowDetailList(params) {
  return request({
    url: "/capitalFlow",
    method: "get",
    params,
  });
}
//资金流水统计概览
export function getCapitalFlowStatistics(params) {
  return request({
    url: "/capitalFlow/overview",
    method: "get",
    params,
  });
}
//修改资金流水明细
export function getCapitalFlowDetail(data) {
  return request({
    url: `/capitalFlow/${data.id}`,
    method: "PUT",
    data,
  });
}
//新增用户币种设置
export function currencySetting(data) {
  return request({
    url: `/userCurrencySetting`,
    method: "POST",
    data,
  });
}
//用户可设置币种列表
export function currencyList() {
  return request({
    url: `/userCurrencySetting/currency`,
    method: "get",
  });
}
